﻿
using ToolMonitoring.WebApi.Demo;

namespace ToolMonitoring.WebApi.HostedService
{
	public class DemoHostedService : IHostedService
	{
		private readonly IDemoService _demo1;
		private readonly DemoService _demo2;

		public DemoHostedService(
			IDemoService demo1,
			DemoService demo2)
		{
			_demo1 = demo1;
			_demo2 = demo2;
		}

		public async Task StartAsync(CancellationToken cancellationToken)
		{
			var b = _demo1.GetId() == _demo2.GetId();
			await Task.CompletedTask;
		}

		public async Task StopAsync(CancellationToken cancellationToken)
		{
			await Task.CompletedTask;
		}
	}
}
